#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <queue>
using namespace std;

void buffer(int* b);

int main()
{
	queue<int> p;
	//;p.pop();
	int* a = new int;
	int b[20] = { 0 };
	buffer(b);
	/*string arr1, arr2;
	cin >> arr1;
	cin >> arr2;
	int next[10] = { 0 };
	next[0] = 0;
	int j = 0;
	for (int i = 1; i < arr2.size(); ++i)
	{
		while (j > 0 && arr2[i] != arr2[j])
			j = next[j - 1];
		if (arr2[i] == arr2[j])
			++j;
		next[i] = j;
	}

	int i = 0;
	j = 0;
	for (i = 0; i < arr1.size(); ++i)
	{
		if (arr1[i] == arr2[j])
		{
			j += 1;
		}
		else if (j > 0)
			j = next[j - 1];
		if (j == arr2.size())
			cout << (i - j + 1) << endl;
	}*/
	//int a = 10;
	//printf("%d%%\n",a);
	//cout << a << '%' << endl;
	return 0;
}